/*
* $Id: ButtonDraw.h 157 2010-09-29 19:15:28Z volok-aleksej@yandex.ru $
*
* Copyright 2010 by Volokitin Alexey
* All rights reserved
*
*/
#ifndef _BUTTON_DRAW_H_
#define _BUTTON_DRAW_H_

#include "DrawControl.h"

interface IDrawer;

class CButtonDraw : public CDrawControl
{
	bool m_bPush;
	int m_nId;
	IDrawer* m_pDrawer;
protected:
	virtual void Resize();
	virtual void PaintActive(CDC* dc);
	virtual void PaintNonActive(CDC* dc);
public:
	CButtonDraw(const std::tstring& strName, IDrawer* pDrawer, int nId = 0);
	virtual ~CButtonDraw();
public:
	virtual bool ProcessMouse(unsigned int nChar, CPoint pos, int param);
	virtual bool ProcessKey(unsigned int nChar, byte stateSysKey);
};

#endif/*_BUTTON_DRAW_H_*/